package cn.alusiaor.commonutil;

import java.io.InputStream;

/**
 * @Author: zhuzhiping
 * @Description: 文件工具类
 * @Date: 2020/11/10 9:48
 */

public class FileUtil {

    public static InputStream getResourceByClassLoader(String fileName) {
        ClassLoader cl = FileUtil.class.getClassLoader();
        InputStream inputStream = cl.getResourceAsStream(fileName);
        return inputStream;
    }

}
